<!DOCTYPE html>
<html>
    <head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>客服管理- 客户反馈详情</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<link rel="shortcut icon" href="favicon.ico">
	<link href="__PUBLIC__/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	<link href="__PUBLIC__/css/font-awesome.css?v=4.4.0" rel="stylesheet">
	<link href="__PUBLIC__/css/animate.css" rel="stylesheet">
	<link href="__PUBLIC__/css/style.css?v=4.1.0" rel="stylesheet">
	<style type="text/css">
	    .img {
		max-width:256px; max-height:256px;
	    }
	    .img2{ max-width: 64px; max-height: 64px; }
	    .imgbox ul {
		width:100%; padding:0;
	    }
	    .imgbox ul li {
		display:inline-block; margin-right:15px;
	    }
	    table tr td.unfound{ text-align: center; }
	    .control-label.control-label-l{ text-align: left; }
	</style>
    </head>
    <body class="gray-bg">
	<div class="wrapper wrapper-content  animated fadeInRight">
	    <div class="row">
		<div class="col-sm-12">
		    <div class="ibox float-e-margins">
			<div class="ibox-title">
			    <h5>客服管理-
				<small>客户反馈详情</small>
			    </h5>
			    <div class="ibox-tools">
			    </div>
			</div>
			<div class="ibox-content">
			    <form method="post" class="form-horizontal" onsubmit="return false">
				<div class="form-group">
				    <label class="col-sm-2 control-label">反馈时间</label>
				    <div class="col-sm-10 control-label control-label-l">
					<{$fb.ctime}>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">编号</label>
				    <div class="col-sm-10 control-label control-label-l">
					<{$id}>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">反馈内容</label>
				    <div class="col-sm-10 control-label control-label-l">
					<{$fb.content}>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">反馈图片</label>
				    <div class="col-sm-10 control-label control-label-l">
					<div class="imgbox">
					    <if condition="$fb.imgs eq null || $fb.imgs eq ''">
						<else/>
						<ul>
						    <volist name="fb.imgs" id="img">
							<li>
							    <img alt="未找到图片" class="img" src="<{$img}>">
							</li>
						    </volist>
						</ul>
					    </if>
					</div>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">用户信息</label>
				    <div class="col-sm-10">
					<div style="padding: 15px 0; border:1px solid #cfdadd;">
					    <div class="form-group">
						<label class="col-sm-2 control-label">头像</label>
						<div class="col-sm-9 control-label control-label-l">
						    <if condition="$fb.user_logo neq null && $fb.user_logo neq ''"><img alt="未找到图片" class="img2" src="<{$fb.user_logo}>" /></if>
						</div>
					    </div>
					    <div class="form-group">
						<label class="col-sm-2 control-label">视客号</label>
						<div class="col-sm-9 control-label control-label-l">
						    <{$fb.user_id}>
						</div>
					    </div>
					    <div class="form-group">
						<label class="col-sm-2 control-label">用户昵称</label>
						<div class="col-sm-9 control-label control-label-l">
						    <{$fb.user_name}>
						</div>
					    </div>
					    <div class="form-group">
						<label class="col-sm-2 control-label">性别</label>
						<div class="col-sm-9 control-label control-label-l">
						    <if condition="$fb.user_sex neq null && $fb.user_sex neq ''"><{$fb.user_sex_text}></if>
						</div>
					    </div>
					    <div class="form-group">
						<label class="col-sm-2 control-label">手机号码</label>
						<div class="col-sm-9 control-label control-label-l">
						    <{$fb.user_phone}>
						</div>
					    </div>
					</div>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label"></label>
				    <div class="col-sm-10 control-label control-label-l">
					<!--				<div class="pull-right tooltip-demo">
									    <a onclick="reply('<{$fb.id}>')" href="javascript:;" class="btn btn-white btn-sm"
									       data-toggle="tooltip" data-placement="top" title="回复"><i class="fa fa-reply"></i> 回复</a>
									</div>-->
					<div class="clients-list">
					    <ul class="nav nav-tabs">
						<li class="active"><a data-toggle="tab" href="#tab-1"> 历史回复</a>
						</li>
					    </ul>
					    <div class="tab-content">
						<div id="tab-1" class="tab-pane active">
						    <div class="full-height-scroll">
							<div class="table-responsive">
							    <table class="table table-striped table-hover">
								<if condition="$data eq null || $data eq ''">
								    <tr><td colspan='5' class='unfound'>没有数据</td></tr>
								    <else/>
								    <volist name="data" id="vo">
									<tr>
									    <td style="width: 15%; text-align: left;"><{$vo.ctime}></td>
									    <td style="text-align: left;"><{$vo.content}></td>
									    <td style="width: 15%; text-align: left;"><{$vo.admin_name_text}></td>
									</tr>
								    </volist>
								</if>
							    </table>
							</div>
						    </div>
						</div>
					    </div>
					</div>
				    </div>
				</div>
				<div class="hr-line-dashed"></div>
				<div class="form-group">
				    <div class="col-sm-4 col-sm-offset-2">
					<button class="btn btn-primary" type="button" onclick="reply('<{$fb.id}>')">回复</button>&nbsp;&nbsp;&nbsp;
					<button class="btn btn-danger" type="button" onclick="del('<{$id}>')">删除</button>
				    </div>
				</div>
			    </form>
			</div>
		    </div>
		</div>
	    </div>
	</div>
	<!-- 全局js -->
	<script src="__PUBLIC__/js/jquery.min.js?v=2.1.4"></script>
	<script src="__PUBLIC__/js/bootstrap.min.js?v=3.3.6"></script>
	<script src="__PUBLIC__/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script src="__PUBLIC__/js/plugins/layer/layer.min.js"></script>
	<!-- 自定义js -->
	<script src="__PUBLIC__/js/content.js?v=1.0.0"></script>
	<script>
					    $(function () {
						$('.full-height-scroll').slimScroll({
						    height: '100%'
						});
					    });
					    var deletesubmit = "<{:U('deletesubmit','','')}>";
					    var feedbacklist = "<{:U('feedbacklist','','')}>";
					    var replyurl = "<{:U('Index/Feedback/replyfeedback','','')}>";
					    function reply(id) {
						layer.open({
						    type: 2,
						    title: '回复',
						    area: ['700px', '350px'],
						    shadeClose: true,
						    content: replyurl + '?id=' + id

						});
					    }
					    function loselay() {
						window.location.href = location.href;
					    }
					    function del(id) {
						layer.confirm('确定删除该反馈吗？', function (index) {
						    layer.close(index);
						    $.post(deletereplysubmit, {id: id},
							    function (data) {
								if (data.ret == '1001') {
								    layer.msg(data.code, {icon: 6, time: 1000});
								    setTimeout(function () {
									window.location.href = feedbacklist;
								    }, 1000);
								} else {
								    layer.msg(data.code, {icon: 5, time: 1500});
								}
							    }, 'json');
						});
					    }
	</script>
    </body>
</html>
